import fetch from '@/utils/fetch';


// 说明：获取今日供水量、今日耗电量、吨水电耗
// 接口：api/schedule/flMonitorPoint
// 请求类型：Post
export function getTodayOutflowElectric(obj) {
    return fetch({
        url: 'api/schedule/flExpendOutput/getTodayOutflowElectric',
        method: 'post',
        data: obj
    });
}

// 说明：能耗分析
// 接口：api/schedule/flMonitorPoint/ids
// 请求类型：Delete
export function searchFlExpendOutput(obj) {
    return fetch({
        url: 'api/schedule/flExpendOutput/search',
        method: 'post',
        data: obj
    });
}

// 说明：出水压力
// 接口：api/schedule/flMonitorPoint/ids
// 请求类型：Delete
export function searchFlReportData(obj) {
    return fetch({
        url: 'api/schedule/flReportData/search',
        method: 'post',
        data: obj
    });
}

// 说明：基本信息
// 接口：api/schedule/flMonitorPoint/ids
// 请求类型：Delete
export function searchFlMonitorPoint(id, obj) {
    return fetch({
        url: 'api/schedule/flMonitorPoint/' + id,
        method: 'get',
        data: obj
    });
}

// 说明：查询最新一条推送数据
// 接口：api/schedule/flMonitorPoint/ids
// 请求类型：Delete
export function getRealtimeReportData(obj) {
    return fetch({
        url: 'api/schedule/flReportData/getRealtimeReportData',
        method: 'post',
        data: obj
    });
}